package orz.mikeneck.android.hello;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class HelloActivity extends Activity {

	private static String TAG = "HelloActivity";

	/** Called when the activity is first created. */
	@Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        ActivityInjection btnAction = new ButtonAction();
        View view = findViewById(R.id.button);
        btnAction.setActivity(this);
        view.setOnClickListener(btnAction);
    }

	@Override
	protected void onDestroy() {
		super.onDestroy();
		Log.d(TAG, "onDestroy");
	}

	@Override
	protected void onPause() {
		super.onPause();
		Log.d(TAG, "onPause");
	}

	@Override
	protected void onRestart() {
		super.onRestart();
		Log.d(TAG, "onRestart");
	}

	@Override
	protected void onResume() {
		super.onResume();
		Log.d(TAG, "onResume");
	}

	@Override
	protected void onStart() {
		super.onStart();
		Log.d(TAG, "onStart");
	}

	@Override
	protected void onStop() {
		super.onStop();
		Log.d(TAG, "onStop");
	}
}
